﻿namespace EHR18
{
    public class MasterFactory
    {
        public static IMaster CreateSerialMaster(System.IO.Ports.SerialPort serialport,MASTER_PROTROL PROTROL)
        {
            IMaster _master=null;
            switch (PROTROL)
            {
                case MASTER_PROTROL.MODBUS:
                    _master = new modbusMaster(serialport);
                    break;
            }
            return _master;
        }
    }
}